<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage<IQueryable<NerdDinner.Web.Models.Data.Dinner>>" %>

<asp:Content ID="Content4" ContentPlaceHolderID="TitleContent" runat="server">
	<%= ViewData["PageTitle"] %>
</asp:Content>

<asp:Content ID="Content3" ContentPlaceHolderID="JavascriptContent" runat="server">
</asp:Content>

<asp:Content ID="Content5" ContentPlaceHolderID="MainContent" runat="server">

    <h2><%= ViewData["PageTitle"] %></h2>

    <ul> 
            
        <% foreach (var dinner in Model) { %> 
            <li> 
            <%= Html.ActionLink(dinner.Title, "Details", new { number=dinner.DinnerId }) %>             
            on  
            <%=Html.Encode(dinner.EventDate.ToShortDateString())%> 
            @ 
            <%=Html.Encode(dinner.EventDate.ToShortTimeString())%> 
            </li> 
        <% } %> 
    </ul> 
    
   
</asp:Content>